package com.vic.mvc.testsome;

import java.io.File;
import java.io.FileFilter;

public class FileFilterTest {

	public static void main(String[] args) {
		String path = "E:/test";
		File[] fs = new File(path).listFiles(new FileFilter() {
			
			@Override
			public boolean accept(File pathname) {
				return pathname.getName().endsWith(".doc");
			}
		});
		for(File f : fs ) {
			System.out.println(f.getName());
		}
		
	}
}
